//
//  AddManagerAndClassViewController.m
//  Ai
//
//  Created by 杜超男 on 2019/3/18.
//  Copyright © 2019年 杜超男. All rights reserved.
//

#import "AddManagerAndClassViewController.h"
#import "ManagerViewController.h"
@interface AddManagerAndClassViewController ()
@property (weak, nonatomic) IBOutlet UITextField *ClassName;
@property (weak, nonatomic) IBOutlet UITextField *ManagerName;
@property (weak, nonatomic) IBOutlet UITextField *ManagerNumber;

@end

@implementation AddManagerAndClassViewController
- (IBAction)BackBtn:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)SaveBtn:(id)sender {
    ManagerViewController *manager = [ManagerViewController new];
    manager.ClassName = self.ClassName.text;
    manager.ManagerName = self.ManagerName.text;
    manager.ManagerNumber = self.ManagerNumber.text;
    [self.navigationController pushViewController:[ManagerViewController new] animated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    //245/255.0
    self.view.backgroundColor = [UIColor colorWithRed:245/255.0 green:245/255.0 blue:245/255.0 alpha:1];
    // Do any additional setup after loading the view from its nib.
}
-(void)viewWillAppear:(BOOL)animated{
    self.navigationController.navigationBar.hidden = YES;
    self.tabBarController.tabBar.hidden = YES;
};
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
